<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="h" uri="/hd-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>增加新客户</title>
<script type="text/javascript" src="js/jquery-1.2.6.js"></script>

<link href="style/main.css" rel="stylesheet" type="text/css"/>
<link href="style/glowtabs.css" rel="stylesheet" type="text/css" />
</head>

<body class="body_content">
<div id="wrap">
	<div id="main" class="clearfix">

<jsp:include page="../header.jsp"></jsp:include>

<div class="ricoh_content_k">
	<div class="ricoh_title">--- 新增客户 --- </div>
	<div class="ricoh_content_in">
	
	  <form action="custome_saveNewCustomer.action" method="post" onsubmit="return validation();">
		<dl>
			<dt>单位名称:</dt><dd>
			  	<input type="text" id="unitName" name="customer.unitName" style="width:230px;" maxlength="50"/>
			</dd>
			
			<dt>单位简称:</dt><dd>
			  	<input type="text" id="unitForShort" name="customer.unitForShort" style="width:230px;" maxlength="20"/>
			</dd>
			
	    	<dt>单位地址:</dt><dd>
	      		<input type="text" id="address" name="customer.address" style="width:230px;" maxlength="50"/>
	    	</dd>
	    	
			<dt>单位区域:</dt><dd>
			  <select id="district" name="customer.district">
			    <option value="滨湖区">滨湖区</option>
               </select>
			</dd>
			
			<dt>单位性质:</dt><dd>
			  <select id="unitKind" name="customer.unitKind">
			    <option>私营企业</option>
			    <option>合资企业</option>
			    <option>事业单位</option>
              </select>
			</dd>
			
			<dt>联系方式:</dt><dd>
			  <input type="text" id="contactWay" name="customer.contactWay" style="width:130px" maxlength="25"/>
			</dd>
			
			<dt>传真:</dt><dd>
			  <input type="text" id="fax" name="customer.fax" style="width:130px" maxlength="25"/>
			</dd>
			
			<!-- 
			<dt>状态:</dt><dd>
			  <select name="select5">
			    <option>1</option>
			    <option>2</option>
              </select>
			</dd>
			-->
			
			<dt>&nbsp;</dt><dd>
			  <input type="submit" value="确定"  class="send_btn"/>
			</dd>
			
			<div class="clear"></div>
		</dl>
	 </form>	
  </div>
</div>

</div>
</div>

<jsp:include page="../footer.jsp"></jsp:include>

</body>
<script type="text/javascript" src="js/ddtabmenu.js"></script>
<script type="text/javascript">
	ddtabmenu.definemenu("ddtabs2", 2);

	$(document).ready(function(){
		if(${statusTemp} == true){
			alert("添加成功");
		}
	});

	function validation(){
		if($("#unitName").val() == ""){
			alert("请输入单位名称");
			return false;
		}else if($("#unitForShort").val() == ""){
			alert("请输入单位简称");
			return false;
		}else if($("#address").val() == ""){
			alert("请输入单位地址");
			return false;
		}else if($("#contactWay").val() == ""){
			alert("请输入联系方式");
			return false;
		}else{
			return true;
		}
	}
</script>
</html>
